This section contains functions introduced in QuickTime 4. In addition to explanations in this section, you can find more information in "New Features of Graphics Importer Components" .
Returns the number of images in the image file.
pascal ComponentResult GraphicsImportGetImageCount (GraphicsImportComponent ci,
unsigned long *imageCount);
Most image file formats don't support multiple images. Of the image formats supported by QuickTime 4, however, TIFF files can support multiple images, Photoshop files can contain multiple layers and FlashPix files can contain multiple resolutions.
The base graphics importer returns a count of 1. Format-specific importers for multiple-image formats should override this function; other importers should delegate it.
pascal ComponentResult GraphicsImportSetImageIndex (GraphicsImportComponent ci,
unsigned long imageIndex);
The default image index is 1. Image indexes are one-based; zero is considered a special index by some importers, and treated the same as one by others.
The base graphics importer implements this function. Format-specific importers should delegate it. The base graphics importer ensures that the image index is no greater than the image count returned by GraphicsImportGetImageCount .
Returns the current image index.
pascal ComponentResult GraphicsImportGetImageIndex (GraphicsImportComponent ci,
unsigned long *imageIndex);
Returns the location of the compressed data segment within the data reference.
pascal ComponentResult GraphicsImportGetDataOffsetAndSize64 ( GraphicsImportComponent ci,
wide *offset,
wide *size);
This is a 64-bit analog of GraphicsImportGetDataOffsetAndSize .
Format-specific importers may delegate this function, in which case the base importer's implementation will call the 32-bit equivalent, GraphicsImportGetDataOffsetAndSize . If neither function is implemented by the format-specific importer, then both functions will return offset zero and the full size of the data reference (taking into account any data reference offset and limit).
pascal ComponentResult GraphicsImportReadData64 (
GraphicsImportComponent ci,
void *dataPtr,
const wide *dataOffset,
unsigned long dataSize);
Specifies the location of the compressed data segment within the data reference.
pascal ComponentResult GraphicsImportSetDataReferenceOffsetAndLimit64 (GraphicsImportComponent
ci,
const wide *offset,
const wide *limit);
Returns the location of the compressed data segment within the data reference.
pascal ComponentResult GraphicsImportGetDataReferenceOffsetAndLimit64 (
GraphicsImportComponent ci,
wide *offset,
wide *limit);
Returns the default matrix, if one is stored in the image.
pascal ComponentResult GraphicsImportGetDefaultMatrix (GraphicsImportComponent ci,
MatrixRecord *defaultMatrix);
Returns the default clipping region, if one is stored in the image.
pascal ComponentResult GraphicsImportGetDefaultClip ( GraphicsImportComponent ci,
RgnHandle *defaultRgn);
Returns the default graphics mode, if one is stored in the image.
pascal ComponentResult GraphicsImportGetDefaultGraphicsMode ( GraphicsImportComponent ci,
long *defaultGraphicsMode,
RGBColor *defaultOpColor);
Returns the default source rect, if one is stored in the image.
pascal ComponentResult GraphicsImportGetDefaultSourceRect ( GraphicsImportComponent ci,
Rect *defaultSourceRect);
Returns a ColorSync profile, if one is embedded in the image file.
pascal ComponentResult GraphicsImportGetColorSyncProfile ( GraphicsImportComponent ci,
Handle *profile);
Sets the destination rectangle.
pascal ComponentResult GraphicsImportSetDestRect (
GraphicsImportComponent ci,
const Rect *destRect);
You can use this function to define the rectangle into which the extracted source rectangle should be drawn. This function creates a transformation matrix to map the source rectangle to the specified destination rectangle and then calls the GraphicsImportSetMatrix function.
If the source rectangle is equal to the natural bounds, this function is equivalent to GraphicsImportSetBoundsRect . For more information on the relationship between rectangles and transformation matrix, see "Getting/Setting the Destination Rectangle" .
Returns the destination rectangle.
pascal ComponentResult GraphicsImportGetDestRect (
GraphicsImportComponent ci,
Rect *destRect);
pascal ComponentResult GraphicsImportSetFlags (
GraphicsImportComponent ci,
long flags);
pascal ComponentResult GraphicsImportGetFlags (
GraphicsImportComponent ci,
long *flags);
| Previous | Chapter Contents | Chapter Top | Next |